package foodmaterial.entity;

import foodmaterial.action.valid.ObjectNullValid;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class ProcessBillDetail implements Serializable {
    private static final long serialVersionUID = 8317256036465292890L;

    private Long id ;
    private Long processBillId;
    private Date stockDate;
    @ObjectNullValid(message = "净菜不能为空")
    private Long originalId ;
    private String originalName ;
    @ObjectNullValid(message = "净菜数量不能为空")
    @DecimalMin(value="0.001", message = "净菜数量至少为{value}")
    @DecimalMax(value="100000",message = "净菜数量最大为{value}")
    private BigDecimal processAmount ;
    private Long processId ;
    private String processName;
    @ObjectNullValid(message = "毛菜数量不能为空")
    @DecimalMin(value="0.001",message = "毛菜数量至少为{value}")
    @DecimalMax(value="100000",message = "毛菜数量最大为{value}")
    private BigDecimal originalAmount ;
    private String specs;
    private String brand ;
    private String unitName ;
    private Double originalProcessRate;
    private Long productionLineId ;
    private String productionLineName ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProcessBillId() {
        return processBillId;
    }

    public void setProcessBillId(Long processBillId) {
        this.processBillId = processBillId;
    }

    public Date getStockDate() {
        return stockDate;
    }

    public void setStockDate(Date stockDate) {
        this.stockDate = stockDate;
    }

    public Long getOriginalId() {
        return originalId;
    }

    public void setOriginalId(Long originalId) {
        this.originalId = originalId;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public BigDecimal getOriginalAmount() {
        return originalAmount;
    }

    public void setOriginalAmount(BigDecimal originalAmount) {
        this.originalAmount = originalAmount;
    }

    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public BigDecimal getProcessAmount() {
        return processAmount;
    }

    public void setProcessAmount(BigDecimal processAmount) {
        this.processAmount = processAmount;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Double getOriginalProcessRate() {
        return originalProcessRate;
    }

    public void setOriginalProcessRate(Double originalProcessRate) {
        this.originalProcessRate = originalProcessRate;
    }

    public Long getProductionLineId() {
        return productionLineId;
    }

    public void setProductionLineId(Long productionLineId) {
        this.productionLineId = productionLineId;
    }

    public String getProductionLineName() {
        return productionLineName;
    }

    public void setProductionLineName(String productionLineName) {
        this.productionLineName = productionLineName;
    }
}
